{include file="common/header.tpl"}
{if $AppUI->id <= 0}
	{include file="index/login.tpl"}  
{else}
	{include file="common/menu.tpl"}
    <div class="rightColumn">
    	<div class="boxContent">
        	<div class="contentItem">
                <div class="contentItems">
                	{if $intStatuses >= 0}
                		<div class="headerTitle">
                        	<h2>
                            	<a href="{$refer}">Tổng hợp báo vi phạm</a>
                                &raquo; chi tiết
                           	</h2>
                       	</div>
                    {/if} 
                    <div class="secData">
                    	<table width="100%" cellpadding="0" cellspacing="0" border="0">
                        	<thead>
                            	<tr>
                                	<th width="20%">Trường dữ liệu</th>
                                    <th>Thông tin</th>
                                </tr>
                            </thead>
                            <tbody>
                            	<tr class="odd">
                                	<td>Thành viên báo:</td>
                                    <td><strong>{$row.userid|ouser}</strong></td>
                                </tr>
                                <tr class="even">
                                	<td>Loại:</td>
                                    <td>
                                    	<strong>{$arrType[$row.type]}</strong>
                                    </td>
                                </tr>
                            	<tr class="odd">
                                	<td>Tóm lược:</td>
                                    <td class="content">
                                    	{if $row.type == 1 || $row.type == 4}
                                            <h4>{$row.info.title}</h4>
                                            <div class="topLine">{$row.info.content|str_emoticon}</div>
                                        {elseif $row.type == 2}
                                            {image path=$row.info.path type=2 small=1}
                                        {elseif $row.type == 3}
                                            {$row.info.content|str_emoticon}
                                        {elseif $row.type == 5}
                                            <h4>{$row.info.title}</h4>
                                            {if $row.info.content != ""}
                                                <div class="topLine">{$row.info.content}</div>
                                            {/if}
                                        {elseif $row.type == 7}
                                            <h4>{$row.info.name}</h4>
                                            {if $row.img}
                                                {foreach item=srow from=$row.img}
                                                    <p>{image path=$srow.info.path type=2 small=1}</p>
                                                {/foreach}
                                            {/if}
                                        {elseif $row.type == 8}
                                            <h4>{$row.info.name}</h4>
                                            {if $row.info.content != ""}
                                                <div class="topLine">{$row.info.content}</div>
                                            {/if}
                                        {/if}
                                    </td>
                                </tr>
                                <tr class="even">
                                	<td>Báo vi phạm:</td>
                                    <td>
                                    	{if ($row.cate&1<<0) > 0}
                                            <p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[1]}</p>
                                        {/if}
                                        {if ($row.cate&1<<1) > 0}
                                            <p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[2]}</p>
                                        {/if}
                                        {if ($row.cate&1<<2) > 0}
                                            <p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[3]}</p>
                                        {/if}
                                        {if ($row.cate&1<<3) > 0}
                                            <p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[4]}</p>
                                        {/if}
                                    </td>
                                </tr>
                                <tr class="odd">
                                	<td>Tình trạng</td>
                                    <td>{if $row.statuses == 0}
                                            Chờ duyệt
                                        {elseif $row.statuses == 1}
                                            Nội dung bình thường
                                        {elseif $row.statuses == 2}
                                            Báo đúng
                                        {elseif $row.statuses == 3}
                                            Báo sai
                                        {else}
                                            Bị xóa
                                        {/if}</td>
                                </tr>
                                {if isset($smarty.session.report) && $smarty.session.report > 0}   
                                	<tr class="even">
                                		<td>&nbsp;</td>                                         
                                        <td>
                                            {if ($smarty.session.report&1<<5) > 0}
                                                <a href="{$smarty.const.HOST_BACKEND}index/actreport?paction=1&amp;preportid={$row.reportid}&amp;refer={$refer|base64E}&amp;de=1&amp;uid={$row.userid}" class="btn">Gỡ bỏ</a>
                                                <a href="{$smarty.const.HOST_BACKEND}index/actreport?paction=3&amp;preportid={$row.reportid}&amp;refer={$refer|base64E}&amp;de=1&amp;uid={$row.userid}" class="btn">Báo đúng</a>
                                                <a href="{$smarty.const.HOST_BACKEND}index/actreport?paction=5&amp;preportid={$row.reportid}&amp;refer={$refer|base64E}&amp;de=1&amp;uid={$row.userid}" class="btn">Báo sai</a>
                                            {/if}
                                            {if ($smarty.session.report&1<<3) > 0} 
                                            	<a href="{$smarty.const.HOST_BACKEND}index/actreport?paction=2&amp;preportid={$row.reportid}&amp;refer={$refer|base64E}&amp;de=1&amp;uid={$row.userid}" class="btn">Xóa</a> 
                                                {if $AppUI->type > 1}
                                                	<a href="{$smarty.const.HOST_BACKEND}index/actreport?paction=4&amp;preportid={$row.reportid}&amp;refer={$refer|base64E}&amp;de=1&amp;uid={$row.userid}" class="btnLarge">Xóa khỏi database</a> 
                                                {/if}
                                            {/if}
                                       	</td>
                                    </tr>
                                {/if}
                            </tbody>
                        </table>
                    </div>
                </div>
          	</div>
        </div>
    </div>
{/if}
{include file="common/footer.tpl"}
                
